package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-11-26 14:20:18.384
 */
@Entity
@Table(name = "ccs_sec_function",catalog = "ccsdb")
public class CcsSecFunction implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "ccs_sec_function";

    /**菜单ID */
	public static final String ALIAS_FID = "fid";
    /**菜单名称 */
	public static final String ALIAS_FUNC_NAME = "func_name";
    /**菜单描述 */
	public static final String ALIAS_FUNC_DESC = "func_desc";
    /**菜单地址 */
	public static final String ALIAS_FUNC_URL = "func_url";
    /**菜单图标 */
	public static final String ALIAS_FUNC_PIC = "func_pic";
    /**菜单等级 */
	public static final String ALIAS_FUNC_LEVEL = "func_level";
    /**上级菜单 */
	public static final String ALIAS_PARENT_FID = "parent_fid";
    /**类别 1 菜单  2 功能 */
	public static final String ALIAS_FUNC_TYPE = "func_type";
    /**排序 */
	public static final String ALIAS_SORTNO = "sortno";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "fid", unique = true, nullable = false)
    public java.lang.Long fid;
  
 	@Column(name = "func_name")
    public java.lang.String funcName;
  
 	@Column(name = "func_desc")
    public java.lang.String funcDesc;
  
 	@Column(name = "func_url")
    public java.lang.String funcUrl;
  
 	@Column(name = "func_pic")
    public java.lang.String funcPic;
  
 	@Column(name = "func_level")
    public java.lang.Long funcLevel;
  
 	@Column(name = "parent_fid")
    public java.lang.Long parentFid;
  
 	@Column(name = "func_type")
    public java.lang.Long funcType;
  
 	@Column(name = "sortno")
    public java.lang.Long sortno = 0l;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  





	public java.lang.Long getFid() {
		return this.fid;
	}
	
	public void setFid(java.lang.Long value) {
		this.fid = value;
	}

	public java.lang.String getFuncName() {
		return this.funcName;
	}
	
	public void setFuncName(java.lang.String value) {
		this.funcName = value;
	}

	public java.lang.String getFuncDesc() {
		return this.funcDesc;
	}
	
	public void setFuncDesc(java.lang.String value) {
		this.funcDesc = value;
	}

	public java.lang.String getFuncUrl() {
		return this.funcUrl;
	}
	
	public void setFuncUrl(java.lang.String value) {
		this.funcUrl = value;
	}

	public java.lang.String getFuncPic() {
		return this.funcPic;
	}
	
	public void setFuncPic(java.lang.String value) {
		this.funcPic = value;
	}

	public java.lang.Long getFuncLevel() {
		return this.funcLevel;
	}
	
	public void setFuncLevel(java.lang.Long value) {
		this.funcLevel = value;
	}

	public java.lang.Long getParentFid() {
		return this.parentFid;
	}
	
	public void setParentFid(java.lang.Long value) {
		this.parentFid = value;
	}

	public java.lang.Long getFuncType() {
		return this.funcType;
	}
	
	public void setFuncType(java.lang.Long value) {
		this.funcType = value;
	}

	public java.lang.Long getSortno() {
		return this.sortno;
	}
	
	public void setSortno(java.lang.Long value) {
		this.sortno = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}


	
	public CcsSecFunction() {
	}
	
	public CcsSecFunction(boolean qryflag) {
	    if(qryflag){
	    		this.fid = null;
				this.funcName = null;
				this.funcDesc = null;
				this.funcUrl = null;
				this.funcPic = null;
				this.funcLevel = null;
				this.parentFid = null;
				this.funcType = null;
				this.sortno = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
			    }
	}


	public CcsSecFunction(
	    java.lang.Long inFid,
	    java.lang.String inFuncName,
	    java.lang.String inFuncDesc,
	    java.lang.String inFuncUrl,
	    java.lang.String inFuncPic,
	    java.lang.Long inFuncLevel,
	    java.lang.Long inParentFid,
	    java.lang.Long inFuncType,
	    java.lang.Long inSortno,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.util.Date inUpdateTime
	 ) {
		super();
				this.fid = inFid;
				this.funcName = inFuncName;
				this.funcDesc = inFuncDesc;
				this.funcUrl = inFuncUrl;
				this.funcPic = inFuncPic;
				this.funcLevel = inFuncLevel;
				this.parentFid = inParentFid;
				this.funcType = inFuncType;
				this.sortno = inSortno;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
			}




	@Transient
	private String parentName = "";

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	@Transient
	private Boolean isChecked = false;

	public Boolean getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(Boolean isChecked) {
		this.isChecked = isChecked;
	}

}

